﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HR_ctrAnswers.ascx.cs" Inherits="vHCS.Web.MdlHR.Controls.HR_ctrAnswers" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:HiddenField ID="hdfQuestionType" runat="server" />
<asp:HiddenField ID="hdfQuestionInputType" runat="server" />
<asp:HiddenField ID="hdfDataTextField" runat="server" />
<asp:HiddenField ID="hdfDataValueField" runat="server" />
<asp:HiddenField ID="hdfValidationGroup" runat="server" />
<asp:HiddenField ID="hdfRequire" runat="server" />
<asp:HiddenField ID="hdfIndex" runat="server" />
<asp:HiddenField ID="hdfQuestionId" runat="server" />
<div class="question">
    <asp:Label CssClass="questionIndex" ID="Label2" runat="server" Text="Câu hỏi "></asp:Label>
    <asp:Label CssClass="questionIndex" ID="lblQuesionIndex" runat="server" Text=""></asp:Label>
    <asp:Label CssClass="require" ID="lblRequire" Visible="false" runat="server" Text="(*)"></asp:Label>
    <span class="questionIndex">:</span>
    <asp:Label CssClass="questioName" ID="lblQuestionName" runat="server" Text=""></asp:Label>
    <asp:TextBox ID="txtForValidate" Width="0" Height="0" style="border:0;" Text="For fucus" runat="server">
    </asp:TextBox>  
</div>


<div class="divSelection">
    

    <asp:CustomValidator ID="valRequireCheckBox" runat="server"  SetFocusOnError="true"
        CssClass="validation" ClientValidationFunction="CheckBoxAnswerList_Validate"
        Display="Dynamic" ControlToValidate="txtForValidate"
        ErrorMessage="Câu hỏi bắt buộc trả lời. Vui lòng chọn câu trả lời">
    </asp:CustomValidator>
    <asp:CustomValidator ID="valRequireRadio" runat="server"  SetFocusOnError="true"
        CssClass="validation" ClientValidationFunction="RadioAnswerList_Validate" 
        ControlToValidate="txtForValidate" Display="Dynamic"
        ErrorMessage="Câu hỏi bắt buộc trả lời. Vui lòng chọn câu trả lời">
    </asp:CustomValidator>
   


    <asp:CheckBoxList ID="dtlCheckBoxAnswerList" CssClass="selectItem" runat="server" RepeatColumns="1" TextAlign="Right" 
        DataTextField='<%#this.DataTextField %>' 
        DataValueField='<%#this.DataValueField %>'>
    </asp:CheckBoxList>

    <asp:RadioButtonList ID="dtlRadioAnswerList" runat="server"
        DataTextField='<%#this.DataTextField %>'  RepeatColumns="1" TextAlign="Right"
        DataValueField='<%#this.DataValueField %>'>
    </asp:RadioButtonList>

    <asp:DataList ID="dtlTextboxList"  runat="server" Width="100%">
    <ItemTemplate>
    <div class="itemRow">
     <asp:Label ID="lblAnswerID" CssClass="label" Visible="false"  Text='<%#DataBinder.Eval(Container.DataItem,"Value") %>' runat="server" ></asp:Label>
    <div class="stt"> <%#Container.ItemIndex + 1%></div>
   <div class="factors">
        <asp:Label ID="lblAnsName" CssClass="label" Text='<%#DataBinder.Eval(Container.DataItem,"Text") %>' runat="server" ></asp:Label>
        
        </div>
    <div class="marks">
        <asp:TextBox  ID="txtAnsName" CssClass="inputText" MaxLength="255"  Width="100%"   runat="server"></asp:TextBox>
    </div>
      
     <div class="itemRow">
    </ItemTemplate>
</asp:DataList>
    <asp:Panel ID="pnlComboAnswer" runat="server" CssClass="comboQuestion" Visible="false" >  
        <div class="label">
            <asp:Label ID="Label3" runat="server" Text="Chọn câu trả lời"></asp:Label>
        </div>
        <div class="control">   
           
           <asp:RequiredFieldValidator ID="valRequireComboAnswer" ControlToValidate="cboComboAnswer"
                runat="server"  Display="Dynamic" CssClass="validation" SetFocusOnError="true"
                ErrorMessage="Câu hỏi bắt buộc trả lời. Vui lòng chọn câu trả lời">
            </asp:RequiredFieldValidator>
           
            <asp:DropDownList ID="cboComboAnswer" Width="100%"  CssClass="comboAnswer" 
                runat="server" Visible="true" 
                DataTextField='<%#this.DataTextField %>' 
                DataValueField='<%#this.DataValueField %>'>
               
            </asp:DropDownList>
          
          </div> 
        <div class="divClear"></div>        
    </asp:Panel>
    
</div>
<div class="divInput" style=" text-align:left">
    <asp:Panel ID="pnlTextBox" runat="server" CssClass="comboQuestion" Visible="false">       
        <asp:Label ID="lblOtherTextbox" CssClass="label" runat="server" Text="Ý kiến khác"></asp:Label>
       
        <div class="control" style=" text-align:left">
            <asp:RequiredFieldValidator ID="valRequieComment" ControlToValidate="txtComment"
                runat="server"  Display="Dynamic" CssClass="validation" SetFocusOnError="true"
                ErrorMessage="Câu hỏi bắt buộc trả lời. Vui lòng chọn câu trả lời">
            </asp:RequiredFieldValidator>
            <asp:TextBox CssClass="inputText" MaxLength="255" ID="txtComment" Width="100%"  runat="server"></asp:TextBox>
        </div>
         <div class="divClear"></div>    
    </asp:Panel>
    <asp:Panel ID="pnlEditor"  runat="server" Visible="false" CssClass="comboQuestion" >
       
        <asp:Label ID="lblOtherEditor" runat="server" CssClass="label" Text="Ý kiến khác"></asp:Label>
        
        <div class="control" style=" text-align:left">
            <asp:RequiredFieldValidator ID="valRequieMultiComment" ControlToValidate="txtOtherComment"
                runat="server"  Display="Dynamic" CssClass="validation" SetFocusOnError="true"
                ErrorMessage="Câu hỏi bắt buộc trả lời. Vui lòng chọn câu trả lời">
            </asp:RequiredFieldValidator>
            <asp:TextBox ID="txtOtherComment" MaxLength="500" TextMode="MultiLine" Rows="4" Font-Size="10" Font-Names="Arial" CssClass="inputMultiText" runat="server"></asp:TextBox>
        </div>
         <div class="divClear"></div> 
    </asp:Panel>   
</div>



<div style=" display:none">   
    <asp:Label ID="lblNALabel" Visible="false" runat="server" Width="0" Height="0" Text="Không có câu trả lời"></asp:Label>
</div>

